﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IoTEdge.Grpc.Server.Libs.entities
{
    /// <summary>
    ///  单个属性
    /// </summary>
    public class SingleProperty
    {
        /// <summary>
        /// 模块名
        /// </summary>
        public string Service { get; set; }
        /// <summary>
        /// 属性名
        /// </summary>
        public string Property { get; set; }
        /// <summary>
        ///  是否是可写属性
        /// </summary>
        public bool WriteAble { get; set; }
        /// <summary>
        /// 最大值
        /// </summary>
        public object MaxValue { get; set; }
        /// <summary>
        /// 最小值
        /// </summary>
        public object MinValue { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public int DateType { get; set; }
        /// <summary>
        ///  属性扩展配置
        /// </summary>
        public string PropertyExtensionConfig { get; set; }
        /// <summary>
        /// 属性类型
        /// </summary>
        public string PropertyType { get; set; }
        /// <summary>
        /// 静态值
        /// </summary>
        public string StaticValue { get; set; }
    }
}
